import { defineStore } from 'pinia'

// 用于iframe页面的更新
export const iframeStore = defineStore({
  id: 'ifrmeDict',
  state: () => ({
    iframDict: {} as any
  }),
  actions: {
    setRecord(nodeId: string, record: any) {
      this.iframDict[nodeId] = record
    }
  }
})
